import type { Task, Assignee, Priority, Status } from '../types/task';

// Mock数据
export const mockAssignees: Assignee[] = [
  {
    id: 'user1',
    name: '张三',
    avatar: 'https://example.com/avatar1.jpg'
  },
  {
    id: 'user2',
    name: '李四',
    avatar: 'https://example.com/avatar2.jpg'
  },
  {
    id: 'user3',
    name: '王五',
    avatar: 'https://example.com/avatar3.jpg'
  },
  {
    id: 'user4',
    name: '赵六',
    avatar: 'https://example.com/avatar4.jpg'
  },
  {
    id: 'user5',
    name: '钱七',
    avatar: 'https://example.com/avatar5.jpg'
  },
  {
    id: 'user6',
    name: '孙八',
    avatar: 'https://example.com/avatar6.jpg'
  },
  {
    id: 'user7',
    name: '周九',
    avatar: 'https://example.com/avatar7.jpg'
  },
  {
    id: 'user8',
    name: '吴十',
    avatar: 'https://example.com/avatar8.jpg'
  }
];

export const mockPriorities: Priority[] = [
  {
    id: 'high',
    name: '高优先级',
    color: '#f56c6c'
  },
  {
    id: 'medium',
    name: '中优先级',
    color: '#e6a23c'
  },
  {
    id: 'low',
    name: '低优先级',
    color: '#409eff'
  }
];

export const mockStatuses: Status[] = [
  {
    id: 'todo',
    name: '待处理',
    color: '#909399'
  },
  {
    id: 'inProgress',
    name: '进行中',
    color: '#409eff'
  },
  {
    id: 'completed',
    name: '已完成',
    color: '#67c23a'
  }
];

// 模拟任务数据
export const mockTasks: Task[] = [
  {
    id: 'task1',
    title: '项目需求分析',
    description: '收集并分析客户需求，制定详细的需求文档。',
    assignee: 'user1',
    priority: mockPriorities[0],
    status: mockStatuses[1],
    startTime: '2024-03-15 09:00',
    endTime: '2024-03-20 18:00',
    progress: 60
  },
  {
    id: 'task2',
    title: '系统架构设计',
    description: '设计系统整体架构，包括技术选型和模块划分。',
    assignee: 'user2',
    priority: mockPriorities[1],
    status: mockStatuses[0],
    startTime: '2024-03-16 09:00',
    endTime: '2024-03-22 18:00',
    progress: 30
  },
  {
    id: 'task3',
    title: '前端页面开发',
    description: '开发用户界面，实现交互功能。',
    assignee: 'user3',
    priority: mockPriorities[2],
    status: mockStatuses[2],
    startTime: '2024-03-17 09:00',
    endTime: '2024-03-25 18:00',
    progress: 100
  },
  // 为张三添加的新任务
  {
    id: 'task4',
    title: '数据库设计',
    description: '设计数据库表结构，包括字段定义、索引设计和关系模型。',
    assignee: 'user1',
    priority: mockPriorities[0],
    status: mockStatuses[1],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 45
  },
  {
    id: 'task5',
    title: 'API接口设计',
    description: '设计RESTful API接口，编写接口文档和测试用例。',
    assignee: 'user1',
    priority: mockPriorities[0],
    status: mockStatuses[0],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 20
  },
  {
    id: 'task6',
    title: '性能优化方案',
    description: '制定系统性能优化方案，包括缓存策略和SQL优化。',
    assignee: 'user1',
    priority: mockPriorities[1],
    status: mockStatuses[0],
    startTime: '2024-03-20 09:00',
    endTime: '2024-03-25 18:00',
    progress: 0
  },
  {
    id: 'task7',
    title: '单元测试编写',
    description: '编写单元测试用例，确保代码质量和可维护性。',
    assignee: 'user1',
    priority: mockPriorities[1],
    status: mockStatuses[1],
    startTime: '2024-03-21 09:00',
    endTime: '2024-03-26 18:00',
    progress: 35
  },
  {
    id: 'task8',
    title: '代码审查',
    description: '进行代码审查，确保代码符合规范和最佳实践。',
    assignee: 'user1',
    priority: mockPriorities[2],
    status: mockStatuses[0],
    startTime: '2024-03-22 09:00',
    endTime: '2024-03-27 18:00',
    progress: 0
  },
  {
    id: 'task9',
    title: '部署文档编写',
    description: '编写系统部署文档，包括环境配置和部署步骤。',
    assignee: 'user1',
    priority: mockPriorities[2],
    status: mockStatuses[0],
    startTime: '2024-03-23 09:00',
    endTime: '2024-03-28 18:00',
    progress: 0
  },
  {
    id: 'task10',
    title: '用户手册编写',
    description: '编写用户使用手册，包括功能说明和操作指南。',
    assignee: 'user1',
    priority: mockPriorities[1],
    status: mockStatuses[0],
    startTime: '2024-03-24 09:00',
    endTime: '2024-03-29 18:00',
    progress: 15
  },
  {
    id: 'task11',
    title: '前端架构优化',
    description: '优化前端项目架构，引入最佳实践和设计模式。',
    assignee: 'user2',
    priority: mockPriorities[0],
    status: mockStatuses[1],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 55
  },
  {
    id: 'task12',
    title: '自动化测试',
    description: '搭建自动化测试框架，编写端到端测试用例。',
    assignee: 'user2',
    priority: mockPriorities[0],
    status: mockStatuses[0],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 10
  },
  {
    id: 'task13',
    title: '性能监控系统',
    description: '实现前端性能监控系统，包括错误追踪和性能指标采集。',
    assignee: 'user2',
    priority: mockPriorities[1],
    status: mockStatuses[0],
    startTime: '2024-03-20 09:00',
    endTime: '2024-03-25 18:00',
    progress: 0
  },
  {
    id: 'task14',
    title: '组件库开发',
    description: '开发公共组件库，提供标准化的UI组件。',
    assignee: 'user2',
    priority: mockPriorities[1],
    status: mockStatuses[1],
    startTime: '2024-03-21 09:00',
    endTime: '2024-03-26 18:00',
    progress: 40
  },
  {
    id: 'task15',
    title: 'CI/CD流程优化',
    description: '优化持续集成和部署流程，提高开发效率。',
    assignee: 'user2',
    priority: mockPriorities[2],
    status: mockStatuses[0],
    startTime: '2024-03-22 09:00',
    endTime: '2024-03-27 18:00',
    progress: 0
  },
  {
    id: 'task16',
    title: '微前端改造',
    description: '将现有系统改造为微前端架构，实现模块解耦。',
    assignee: 'user2',
    priority: mockPriorities[2],
    status: mockStatuses[0],
    startTime: '2024-03-23 09:00',
    endTime: '2024-03-28 18:00',
    progress: 0
  },
  {
    id: 'task17',
    title: '技术文档编写',
    description: '编写技术文档，包括架构设计、开发规范和API文档。',
    assignee: 'user2',
    priority: mockPriorities[1],
    status: mockStatuses[2],
    startTime: '2024-03-24 09:00',
    endTime: '2024-03-29 18:00',
    progress: 100
  },
  // 赵六的任务
  {
    id: 'task18',
    title: '用户体验优化',
    description: '优化产品的用户体验，提高用户满意度。',
    assignee: 'user4',
    priority: mockPriorities[0],
    status: mockStatuses[1],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 65
  },
  {
    id: 'task19',
    title: '界面设计评审',
    description: '组织界面设计评审会议，收集反馈意见。',
    assignee: 'user4',
    priority: mockPriorities[1],
    status: mockStatuses[0],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 0
  },
  {
    id: 'task20',
    title: '原型设计',
    description: '设计产品原型，制作交互文档。',
    assignee: 'user4',
    priority: mockPriorities[2],
    status: mockStatuses[2],
    startTime: '2024-03-20 09:00',
    endTime: '2024-03-25 18:00',
    progress: 100
  },
  // 钱七的任务
  {
    id: 'task21',
    title: '数据分析报告',
    description: '分析用户行为数据，生成分析报告。',
    assignee: 'user5',
    priority: mockPriorities[0],
    status: mockStatuses[1],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 75
  },
  {
    id: 'task22',
    title: '数据可视化',
    description: '将分析结果以图表形式展示。',
    assignee: 'user5',
    priority: mockPriorities[1],
    status: mockStatuses[1],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 45
  },
  // 孙八的任务
  {
    id: 'task23',
    title: '服务器维护',
    description: '定期维护服务器，确保系统稳定运行。',
    assignee: 'user6',
    priority: mockPriorities[0],
    status: mockStatuses[0],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 0
  },
  {
    id: 'task24',
    title: '数据库优化',
    description: '优化数据库性能，提高查询效率。',
    assignee: 'user6',
    priority: mockPriorities[1],
    status: mockStatuses[1],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 30
  },
  // 周九的任务
  {
    id: 'task25',
    title: '安全测试',
    description: '进行系统安全测试，查找潜在漏洞。',
    assignee: 'user7',
    priority: mockPriorities[0],
    status: mockStatuses[1],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 50
  },
  {
    id: 'task26',
    title: '漏洞修复',
    description: '修复安全测试中发现的系统漏洞。',
    assignee: 'user7',
    priority: mockPriorities[0],
    status: mockStatuses[0],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 0
  },
  // 吴十的任务
  {
    id: 'task27',
    title: '文档管理',
    description: '整理和维护项目相关文档。',
    assignee: 'user8',
    priority: mockPriorities[1],
    status: mockStatuses[2],
    startTime: '2024-03-18 09:00',
    endTime: '2024-03-23 18:00',
    progress: 100
  },
  {
    id: 'task28',
    title: '知识库建设',
    description: '建设团队知识库，沉淀项目经验。',
    assignee: 'user8',
    priority: mockPriorities[2],
    status: mockStatuses[1],
    startTime: '2024-03-19 09:00',
    endTime: '2024-03-24 18:00',
    progress: 60
  }
]; 